/**
 * Copyright (C) 2015 ogaclejapan
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bob.library;

import android.annotation.TargetApi;
import android.os.Build;
import android.view.Gravity;

public final class ArcOrigin {

    public static final int TOP = Gravity.TOP;

    public static final int BOTTOM = Gravity.BOTTOM;

    public static final int LEFT = Gravity.LEFT;

    public static final int RIGHT = Gravity.RIGHT;

    public static final int CENTER = Gravity.CENTER;

    public static final int CENTER_HORIZONTAL = Gravity.CENTER_HORIZONTAL;

    public static final int CENTER_VERTICAL = Gravity.CENTER_VERTICAL;

    public static final int START = Gravity.START;

    public static final int END = Gravity.END;

    public static final int VERTICAL_MASK = Gravity.VERTICAL_GRAVITY_MASK;

    public static final int HORIZONTAL_MASK = Gravity.HORIZONTAL_GRAVITY_MASK;

    @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
    public static int getAbsoluteOrigin(int origin, int layoutDirection) {
        return Gravity.getAbsoluteGravity(origin, layoutDirection);
    }

    private ArcOrigin() {
        //No instances.
    }

}
